package c.j.a.d.b.d;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import c.j.a.d.b.n.d;
import c.j.a.d.b.n.d.a.b;
import c.j.a.d.b.n.d.a.e;
import c.j.a.d.b.n.d.a.f;
import c.j.a.d.b.n.d.a.h;
import c.j.a.d.b.n.d.a.i;
import c.j.a.d.b.n.d.a.j;
import c.j.a.d.b.n.d.a.k;
import c.j.a.d.b.n.d.a.l;
import com.ss.android.socialbase.downloader.g.c;

/* compiled from: IDownloadAidlListener */
public interface w extends IInterface {

    /* compiled from: IDownloadAidlListener */
    public static abstract class a extends Binder implements w {

        /* compiled from: IDownloadAidlListener */
        public static class a implements w {
            public IBinder a;

            public a(IBinder iBinder) {
                this.a = iBinder;
            }

            public void A(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(13, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void D(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(6, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void H(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(8, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void N(c cVar, com.ss.android.socialbase.downloader.e.a aVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    if (aVar != null) {
                        obtain.writeInt(1);
                        aVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(12, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void P(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(9, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void R(c cVar, com.ss.android.socialbase.downloader.e.a aVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    if (aVar != null) {
                        obtain.writeInt(1);
                        aVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(11, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public int a() throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    this.a.transact(1, obtain, obtain2, 0);
                    obtain2.readException();
                    int readInt = obtain2.readInt();
                    return readInt;
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public IBinder asBinder() {
                return this.a;
            }

            public void b(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(3, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void c(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(4, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void u(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(10, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void x(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(5, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void z(c cVar, com.ss.android.socialbase.downloader.e.a aVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    if (aVar != null) {
                        obtain.writeInt(1);
                        aVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(7, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }

            public void a(c cVar) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                Parcel obtain2 = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
                    if (cVar != null) {
                        obtain.writeInt(1);
                        cVar.writeToParcel(obtain, 0);
                    } else {
                        obtain.writeInt(0);
                    }
                    this.a.transact(2, obtain, obtain2, 0);
                    obtain2.readException();
                } finally {
                    obtain2.recycle();
                    obtain.recycle();
                }
            }
        }

        public a() {
            attachInterface(this, "com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
        }

        public static w y0(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.ss.android.socialbase.downloader.depend.IDownloadAidlListener");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof w)) {
                return new a(iBinder);
            }
            return (w) queryLocalInterface;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.ss.android.socialbase.downloader.depend.IDownloadAidlListener";
            if (i != 1598968902) {
                c cVar = null;
                c.j.a.d.b.n.d.a aVar;
                c cVar2;
                com.ss.android.socialbase.downloader.e.a aVar2;
                c.j.a.d.b.n.d.a aVar3;
                switch (i) {
                    case 1:
                        parcel.enforceInterface(str);
                        i = ((c.j.a.d.b.n.d.a) this).a.hashCode();
                        parcel2.writeNoException();
                        parcel2.writeInt(i);
                        return true;
                    case 2:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new c.j.a.d.b.n.d.a.d(cVar));
                        } else {
                            aVar.a.a(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 3:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new h(cVar));
                        } else {
                            aVar.a.b(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 4:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new i(cVar));
                        } else {
                            aVar.a.c(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 5:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new j(cVar));
                        } else {
                            aVar.a.x(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 6:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new k(cVar));
                        } else {
                            aVar.a.D(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 7:
                        parcel.enforceInterface(str);
                        cVar2 = parcel.readInt() != 0 ? (c) c.CREATOR.createFromParcel(parcel) : null;
                        if (parcel.readInt() != 0) {
                            aVar2 = (com.ss.android.socialbase.downloader.e.a) com.ss.android.socialbase.downloader.e.a.CREATOR.createFromParcel(parcel);
                        }
                        aVar3 = (c.j.a.d.b.n.d.a) this;
                        if (aVar3.b) {
                            d.a.post(new l(cVar2, aVar2));
                        } else {
                            aVar3.a.z(cVar2, aVar2);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 8:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new c.j.a.d.b.n.d.a.a(cVar));
                        } else {
                            aVar.a.H(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 9:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new b(cVar));
                        } else {
                            aVar.a.u(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 10:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        aVar = (c.j.a.d.b.n.d.a) this;
                        if (aVar.b) {
                            d.a.post(new c.j.a.d.b.n.d.a.c(cVar));
                        } else {
                            aVar.a.A(cVar);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 11:
                        parcel.enforceInterface(str);
                        cVar2 = parcel.readInt() != 0 ? (c) c.CREATOR.createFromParcel(parcel) : null;
                        if (parcel.readInt() != 0) {
                            aVar2 = (com.ss.android.socialbase.downloader.e.a) com.ss.android.socialbase.downloader.e.a.CREATOR.createFromParcel(parcel);
                        }
                        aVar3 = (c.j.a.d.b.n.d.a) this;
                        if (aVar3.b) {
                            d.a.post(new e(cVar2, aVar2));
                        } else {
                            aVar3.a.R(cVar2, aVar2);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 12:
                        parcel.enforceInterface(str);
                        cVar2 = parcel.readInt() != 0 ? (c) c.CREATOR.createFromParcel(parcel) : null;
                        if (parcel.readInt() != 0) {
                            aVar2 = (com.ss.android.socialbase.downloader.e.a) com.ss.android.socialbase.downloader.e.a.CREATOR.createFromParcel(parcel);
                        }
                        aVar3 = (c.j.a.d.b.n.d.a) this;
                        if (aVar3.b) {
                            d.a.post(new f(cVar2, aVar2));
                        } else {
                            aVar3.a.N(cVar2, aVar2);
                        }
                        parcel2.writeNoException();
                        return true;
                    case 13:
                        parcel.enforceInterface(str);
                        if (parcel.readInt() != 0) {
                            cVar = (c) c.CREATOR.createFromParcel(parcel);
                        }
                        ((c.j.a.d.b.n.d.a) this).A(cVar);
                        parcel2.writeNoException();
                        return true;
                    default:
                        return super.onTransact(i, parcel, parcel2, i2);
                }
            }
            parcel2.writeString(str);
            return true;
        }
    }

    void A(c cVar) throws RemoteException;

    void D(c cVar) throws RemoteException;

    void H(c cVar) throws RemoteException;

    void N(c cVar, com.ss.android.socialbase.downloader.e.a aVar) throws RemoteException;

    void P(c cVar) throws RemoteException;

    void R(c cVar, com.ss.android.socialbase.downloader.e.a aVar) throws RemoteException;

    int a() throws RemoteException;

    void a(c cVar) throws RemoteException;

    void b(c cVar) throws RemoteException;

    void c(c cVar) throws RemoteException;

    void u(c cVar) throws RemoteException;

    void x(c cVar) throws RemoteException;

    void z(c cVar, com.ss.android.socialbase.downloader.e.a aVar) throws RemoteException;
}
